import java.awt.Container;
import java.awt.event.ActionListener;
import java.util.HashMap;
import java.util.Vector;

import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;


public abstract class SelectieGUI extends JFrame implements ActionListener {

	protected JComboBox klant;
	protected Container c;
	protected Rekening rekening;
	protected Bank b;
	protected HashMap vanNaamKlantNaarRekening;
	protected JButton ok;
	protected JLabel l1;
	
	public SelectieGUI(Bank b){
		this.b = b;
		c = this.getContentPane();
		c.setLayout(new BoxLayout(c, BoxLayout.Y_AXIS));
		vanNaamKlantNaarRekening = b.vanNaamKlantNaarRekening();
		Vector v = b.alleKlanten();
		
		l1 = new JLabel();
		klant = new JComboBox(v);
		ok = new JButton("Ok");
	
		c.add(l1);
		c.add(klant);
		
		klant.addActionListener(this);
		ok.addActionListener(this);
		
	}
	
}

